package com.ktjy.pojo;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.List;

@TableName("sys_role")
public class SysRole  implements Serializable {
    @TableId("role_id")
    private int roleId;
    @TableField("role_name")
    private String roleName;
    private String roleDesc;
    private long roleFlag;

    public int getRoleId() {
        return roleId;
    }

    public void setRoleId(int roleId) {
        this.roleId = roleId;
    }

    @TableField(exist = false)
    public List<SysRight> rights;

    public List<SysRight> getRights() {
        return rights;
    }

    public void setRights(List<SysRight> rights) {
        this.rights = rights;
    }


    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }


    public String getRoleDesc() {
        return roleDesc;
    }

    public void setRoleDesc(String roleDesc) {
        this.roleDesc = roleDesc;
    }


    public long getRoleFlag() {
        return roleFlag;
    }

    public void setRoleFlag(long roleFlag) {
        this.roleFlag = roleFlag;
    }

}
